<!DOCTYPE html>
<html lang="en">
    
    <head>
        <meta charset="UTF-8" />
        <title>
            agoda
        </title>
        <link rel="Shortcut Icon" type="image/x-icon" href="/homeassets/index/images/favicon.ico"
        />
        <link type="text/css" rel="stylesheet" href="/homeassets/detail/css/basePatch.css"
        />
        <link type="text/css" rel="stylesheet" href="/homeassets/detail/css/common.css"
        source="widget" />
        <link type="text/css" rel="stylesheet" href="/homeassets/detail/css/m-album.css"
        source="widget" />
        <link rel="stylesheet" href="/homeassets/index/css/base.min.css" />
        <link rel="stylesheet" href="/homeassets/index/css/index.min.css" />
        <script src="/homeassets/jquery-1.8.3.min.js"></script>
        <style>
            ul li{
                display: block;
                float: left;
                font-size: 12px;
                height: 20px;
                line-height: 20px;
                outline: medium none;
                text-align: center;
                text-decoration: none;
            }
        </style>
    </head>
    
    <body>
        <div id="nav">
            <div class="w">
                <div class="logo">
                    <a href="/" class="" style="float: left;margin-right: -50px;margin-top:20px;width: 158px;height: 80px;">
                        <img src="/homeassets/index/images/logo.png" title="Agoda" alt="Agoda">
                    </a>
                    <a href="/home/detail/index" target="_self" class="fore2" style="float: left;font-size: 20px;margin: 20px 0 0 6px;height: 22px;">
                        天使的购哒
                    </a>
                    <a href="/" class="fore3">
                        返回商城首页
                    </a>
                </div>
                <div class="nav-r">
                    <div id="settleup-2014" class="dorpdown">
                        <div class="cw-icon">
                            <i class="ci-left">
                            </i>
                            <i class="ci-right">
                                &gt;
                            </i>
                            <i class="ci-count" id="shopping-amount">
                            </i>
                            <a target="_blank" href="/home/shopcart">
                                我的购物车
                            </a>
                        </div>
                    </div>
                </div>
                <div class="clr">
                </div>
            </div>
        </div>
        <div id="container">
            <div class="w">
                <div id="content">
                    <div id="sub">
                        <div id="menu">
                            <dl class="fore1">
                                <dt id="_MYJD_setting">
                                    设置
                                </dt>
                                <dd class="fore1_1" id="_MYJD_info" style="margin:0;">
                                    <a clstag="homepage|keycount|home2013|Homesafe" href="/home/detail/index"
                                    target="_self">
                                        个人信息
                                    </a>
                                </dd>
                                <dd class="fore1_2" id="_MYJD_safe" style="margin:0;">
                                    <a clstag="homepage|keycount|home2013|Homesafe" href="/home/detail/safety1"
                                    target="_self">
                                        账户安全
                                    </a>
                                </dd>
                                <dd class="fore1_3" id="_MYJD_accbinde" style="margin:0;">
                                    <a clstag="homepage|keycount|home2013|Homezhbd" href="/home/userorder/index"
                                    target="_self">
                                        订单管理
                                    </a>
                                </dd>
                                <dd class="fore1_5" id="_MYJD_comments" style="margin:0;">
                                    <a clstag="homepage|keycount|home2013|homeadd" href="/home/detail/site"
                                    target="_self">
                                        收货地址
                                    </a>
                                </dd>
                                <dd class="fore1_9" id="_MYJD_recor" style="margin:0;">
                                    <a clstag="homepage|keycount|home2013|Homeedm" href="/home/detail/consume"
                                    target="_self">
                                        可用余额
                                    </a>
                                </dd>
                            </dl>
                        </div>
                    </div>
                    <!-- 中间个人信息内容 -->
                    <div id="main" style="display: block;">
                        <div class="mod-main mod-comm mod-order" id="order01">
                            <div class="mt">
                                <h3>
                                    我的订单
                                </h3>
                                <div class="extra-r">
                                </div>
                            </div>
                        </div>
                        <div class="safety-box hide">
                        </div>
                        <div class="mod-main mod-comm lefta-box" id="order02">
                            <div class="mt">
                                <ul class="extra-l">
                                    <li class="fore1">
                                        <a href="" class="txt curr">
                                            全部订单
                                        </a>
                                    </li>
                                </ul>
                                <div class="extra-r">
                                    <div>
                                        <form action="/home/userorder/index" method="get">
                                            <span style="font-size:13px">关键字:</span>
                                            <input type="search" name="search" value="{{ $search or ''}}" placeholder="商品名称" style="font-size:13px">　　
                                            <button type="submit" style="font-size:13px"> 搜索 </button>
                                        </form>
                                    </div>
                                </div>
                            </div>
                            <div class="mc">
                                <table class="td-void order-tb">
                                   
                                    <thead>
                                        <tr>
                                            <th>
                                                <div class="order-detail-txt ac">
                                                    订单详情
                                                </div>
                                            </th>
                                            <th>
                                                收货人
                                            </th>
                                            <th>
                                                金额
                                            </th>
                                            <th>
                                                状态
                                            </th>
                                            <th>
                                                操作
                                            </th>
                                        </tr>
                                    </thead>
                                    @foreach($data as $k => $v)
                                    <tbody id="tb-50527838797">
                                        <tr class="sep-row">
                                            <td colspan="5">
                                            </td>
                                        </tr>
                                        <tr class="tr-th" >
                                            <td colspan="5" style="font-size:13px;">
                                                <span class="gap">
                                                </span>
                                                <span class="dealtime" title="2017-02-26 10:57:58">
                                                    订单时间：{{ date('Y-m-d H:i:s',$v['ctime']) }}
                                                </span>
                                                <span class="number">
                                                    订单号：
                                                    <a name="orderIdLinks" id="idUrl50527838797" target="_blank" href="//details.jd.com/normal/item.action?orderid=50527838797&amp;PassKey=33FF389B70CE10B0ABFA511C6031BC5B"  clstag="click|keycount|orderinfo|order_num">
                                                        {{ $v['id'] }}
                                                    </a>
                                                </span>
                                                <div class="tr-operate" >
                                                    <a href="/home/userorder/delete?id={{ $v['id'] }}" title="删除" style="float:right" onclick="return confirm('你确认要删除该订单吗？')"> 删除</a>
                                                </div>
                                            </td>
                                        </tr>
                                        <tr class="tr-bd" id="track50527838797" oty="22,4,70">
                                            <td>
                                                <div class="goods-item p-1620688080">
                                                    <div class="p-img">
                                                        <a href="/goodsdetail/{{ $v['gid'] }}" clstag="click|keycount|orderinfo|order_product" target="_blank">
                                                            <img class="" src="{{ $v['picture'] }}" title="{{ $v['goodsname'] }}" data-lazy-img="done" width="60" height="60">
                                                        </a>
                                                    </div>
                                                    <div class="p-msg">
                                                        <div class="p-name">
                                                            <a href="/goodsdetail/{{ $v['gid'] }}" class="a-link" clstag="click|keycount|orderinfo|order_product"
                                                            target="_blank" title="{{ $v['goodsname'] }}">
                                                                {{ $v['goodsname'] }}
                                                            </a>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="goods-number">
                                                    x{{ $v['num'] }}
                                                </div>
                                                <div class="goods-repair">
                                                    <a href="/home/userorder/refund?id={{ $v['id'] }}&merstatus=4" clstag="click|keycount|orderinfo|order_repair" onclick="return confirm('你确认申请退款吗？')">
                                                        申请退款
                                                    </a>
                                                </div>
                                                <div class="clr">
                                                </div>
                                            </td>
                                            <td rowspan="1">
                                                <div class="consignee tooltip">
                                                    <span class="txt">
                                                        {{ $v['sitename'] }}
                                                    </span>
                                                    <b>
                                                    </b>
                                                    <div class="prompt-01 prompt-02" style="display: none;" id="site1_site{{ $k }}">
                                                        <div class="pc">
                                                            <strong>
                                                                {{ $v['sitename'] }}
                                                            </strong>
                                                            <p>
                                                                {{ $v['site'] }}
                                                            </p>
                                                            <p>
                                                                {{ $v['sitephone'] }}
                                                            </p>
                                                        </div>
                                                        <div class="p-arrow p-arrow-left">
                                                        </div>
                                                    </div>
                                                </div>
                                            </td>
                                            <script>
                                                $('#site1_site{{ $k }}').parent().mouseover(function(){
                                                    
                                                    $('#site1_site{{ $k }}').css('display','block');
                                                });

                                                $('#site1_site{{ $k }}').parent().mouseout(function(){
                                                    $('#site1_site{{ $k }}').css('display','none');
                                                });
                                            </script>
                                            <td rowspan="1">
                                                <div class="amount">
                                                    <span>
                                                        {{ $v['price'] }}
                                                    </span>
                                                </div>
                                            </td>
                                            <td rowspan="1">
                                                <div class="status">
                                                    <span class="order-status ftx-03">
                                                        @if($v['merstatus'] == 0)
                                                        <span style="color:#00B2EE">交易完成</span>
                                                        @elseif($v['merstatus'] == 1)
                                                        <span style="color:#228B22">商家已发货</span>
                                                        @elseif($v['merstatus'] == 2)
                                                        <span style="color:#FF7F24">商家未处理</span>
                                                        @elseif($v['merstatus'] == 3)
                                                        <span style="color:#EE6464">退款处理中</span>
                                                        @elseif($v['merstatus'] == 4)
                                                        <span style="color:#A020EF">退款未处理</span>
                                                        @endif
                                                        <br><a href="/home/userorder/orderdetail?id={{ $v['id'] }}">查看详情</a>
                                                    </span>
                                                    <br>
                                                </div>
                                            </td>
                                            <td rowspan="1" id="operate50527838797">
                                                <div class="operate">
                                                    <div id="pay-button-50527838797" _baina="0">
                                                    </div>
                                                    <a class="" href="/home/evaluate/index?gid={{ $v['gid'] }}&id={{ $v['id'] }}" clstag="click|keycount|orderinfo|product_comment">
                                                        　评价　
                                                    </a>
                                                    @if($v['merstatus'] == 1)
                                                    <a class="" clstag="click|keycount|orderinfo|product_show" href="/home/userorder/receipt?id={{ $v['id'] }}&merstatus=0" onclick="return confirm('你确认已收货吗？')">
                                                        确认收货
                                                    </a>
                                                    @endif
                                                    @if($v['merstatus'] == 3)
                                                    <a class="" clstag="click|keycount|orderinfo|product_show" href="/home/userorder/receipt?id={{ $v['id'] }}&merstatus=0" onclick="return confirm('你确认退款已完成吗？')">
                                                        确认退款
                                                    </a>
                                                    @endif
                                                </div>
                                            </td>
                                        </tr>
                                    </tbody>
                                    @endforeach
                                </table>
                                <div class="mt20">
                                    <div class="pagin fr">
                                        {!! $res->render() !!}
                                    </div>
                                    <div class="clr">
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!-- 中间内容结束 -->
                </div>
            </div>
        </div>
        <div class="site-footer">
            <div class="container">
                <div class="footer-links clearfix">
                    <dl class="col-links col-links-first">
                        <dt>
                            帮助中心
                        </dt>
                    </dl>
                    <dl class="col-links ">
                        <dt>
                            服务支持
                        </dt>
                    </dl>
                    <dl class="col-links ">
                        <dt>
                            线下门店
                        </dt>
                    </dl>
                    <dl class="col-links ">
                        <dt>
                            关于agoda
                        </dt>
                    </dl>
                    <dl class="col-links ">
                        <dt>
                            <a href="/home/link/index">
                                有情连接
                            </a>
                        </dt>
                    </dl>
                    <dl class="col-links ">
                        <dt>
                            关注我们
                        </dt>
                    </dl>
                    <dl class="col-links ">
                        <dt>
                            特色服务
                        </dt>
                    </dl>
                    <div class="col-contact">
                        <p class="phone" style="color:#0283DF">
                            188-4611-9379
                        </p>
                        <p>
                            <span class="J_serviceTime-normal" style="
                            ">
                            </span>
                            <br>
                        </p>
                        <a rel="nofollow" class="btn btn-line-primary btn-small" href="" target="_blank">
                            <i class="iconfont">
                                &#xe600;
                            </i>
                        </a>
                    </div>
                </div>
            </div>
        </div>
        <div class="site-info">
            <div class="container">
                <div class="logo ir">
                    agoda官网
                </div>
                <div class="info-text">
                    <p>
                        &copy;
                        <a href="" target="_blank" title="agoda.com">
                            agoda.com
                        </a>
                        鲁ICP证110507号
                        <a href="/" target="_blank" rel="nofollow">
                            鲁ICP备10046444号
                        </a>
                        <a rel="nofollow" href="" target="_blank">
                            鲁公网安备11010802020134号
                        </a>
                        <a rel="nofollow" href="//c1.mifile.cn/f/i/2013/cn/jingwangwen.jpg" target="_blank"
                        rel="nofollow">
                            鲁网文[2014]0059-0009号
                        </a>
                        <br>
                        违法和不良信息举报电话：185-0130-1238，本网站所列数据，除特殊说明，所有数据均出自我司实验室测试
                    </p>
                </div>
            </div>
            <div class="slogan ir">
                探索黑商城，agoda为发烧而生
            </div>
        </div>
    </body>

</html>